package com.hx.web.controller;

import com.hx.api.user.model.SysUser;
import com.hx.api.user.service.SysUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Slf4j
@Controller
@RequestMapping("/user")
public class UserController {
    @Autowired
    SysUserService sysUserService;

    @RequestMapping("/selectOne")
    public SysUser selectOne(){
        SysUser sysUser = sysUserService.selectOne();
        log.info(sysUser.toString());
        return sysUserService.selectOne();
    }

}
